-- script.lua
-- 
-- this is just a simple testing driver so we dont have to use GMOD right away
-- 

dofile( "lib/base.lua" ) -- initialize Teams Table and load functions


function main()
  -- this is the pseudo entrypoint
  
  local Player1 = Teams.Player.new( "Player1", nil, Teams.seekers )
  
  local perk = Teams.Player.Perk.new( Player1.Team )
  perk.Name = "Generic Perk"
  perk.Tier = 0 -- easiest level to acheive
  perk.Type = "Multipurpose Perk"
  Player1.AddPerk( perk )
  
  Player1.AddFunds( 100 )
  Player1.print()
  
  local gun  = Teams.Player.Inventory.Item.new( "Gun" )
  local gun1 = Teams.Player.Inventory.Item.new( "Gun2" )
  local gun2 = Teams.Player.Inventory.Item.new( "Gun3" )
  
  gun.Cost = 10
  gun1.Cost = 100
  gun2.Cost = 90
  
  Player1.Purchase( gun )
  Player1.Purchase( gun1 )
  Player1.Purchase( gun2 )
  Player1.print()
  
  Player1.Inventory.Remove( gun )
  Player1.print()
  
end


-- this is essentially what the computer does
main()